import os
from google.appengine.ext.webapp import template
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

class MainPage(webapp.RequestHandler):
	def get(self):
		tpl_val = {
			'page_title': "kasper - hide out here :)",
		}
		path = os.path.join(os.path.dirname(__file__), 'templates', 'index.html')
		self.response.out.write(template.render(path, tpl_val))

class MainPage2(webapp.RequestHandler):
	def get(self):
		self.response.out.write('11111')
		
application = webapp.WSGIApplication([
		('/', MainPage),
		('/qw/*', MainPage2)
	], debug=True)

def main():
	run_wsgi_app(application)
	
if __name__ == "__main__":
	main()
	
